package top.lyunz.lucky.hr.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import top.lyunz.lucky.hr.bean.configFileThirdKind;
import top.lyunz.lucky.hr.service.configFileThirdKindService;
import top.lyunz.lucky.hr.tools.SimpleResult;

@Controller

public class configFileThirdKindController {
	@Autowired
	private configFileThirdKindService configFileThirdKindService;
	@RequestMapping("/configFileThirdKindGetAll/{id}")
	@ResponseBody
	public SimpleResult configFileThirdKindGetAll(@PathVariable("id") int id) {
		List<configFileThirdKind> arr = configFileThirdKindService.configFileThirdKindgetAll(id);
		for (configFileThirdKind a : arr) {
			System.out.println(a);
		}
		return new SimpleResult(arr);
	}
}
